{#
(C) Copyright 2011 Jose Carrasco <jose.carrasco at vikuit dot com>
(C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>

This file is part of "vikuit".

"vikuit" is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

"vikuit" is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with "vikuit".  If not, see <http://www.gnu.org/licenses/>.
#}
{% extends "layouts/module-layout.html" %}
{% block title %}
	{{ _('Delete article') }}
{% endblock %}

{% block content %}
	<h1>{{ _('Delete article') }}</h1>

	<form action="/module/article.delete" method="post" accept-charset="utf-8" enctype="multipart/form-data">
		<input type="hidden" name="auth" value="{{ auth }}" />
		<input type="hidden" name="key" value="{{ article.key() }}" />
		
		<p class="center">{{ _('Please, enter a message to explain why <strong>%s</strong><br/> article must be deleted')|format(article.title|escape) }}</p>

		<div class="form">
			<p>
				<label for="message">{{ _('Message') }}</label>
				<input id="message" type="text" name="message" value="" style="width:200px" />
			</p>
			<p><input type="submit" value="{{ _('Delete article') }}" /></p>
		</div>
	</form>
{% endblock %}

{% block javascript %}
<script type="text/javascript" charset="utf-8">
	$('message').focus()
</script>
{% endblock %}